﻿<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
          <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-TileImage" content="/res/img/favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta content="sensorsdata" name="apple-mobile-web-app-title">
<meta content="yes" name="apple-mobile-web-app-capable">
        <title>Pivot Demo</title>
        <!-- external libs from cdnjs -->
        <link rel="stylesheet" type="text/css" href="./css/c3.min.css">     
        <!--script type="text/javascript" src="./js/d3.min.js"></script-->
        <!--script type="text/javascript" src="./js/c3.min.js"></script-->
        <script type="text/javascript" src="./js/jquery.min.js"></script>
                        <script type="text/javascript" src="./js/jquery.csv-0.71.min.js"></script>
        <script type="text/javascript" src="./js/jquery-ui.min.js"></script>
        <!-- PivotTable.js libs from ../dist -->
        <link rel="stylesheet" type="text/css" href="./css/pivot.css">
        <script type="text/javascript" src="./js/pivot.js"></script>
        <script type="text/javascript" src="./js/ec_renderers.js"></script>
        <script src="./js/echarts.js"></script>
        <style>
            body {font-family: Verdana;}
        .c3-line, .c3-focused {stroke-width: 3px !important;}
        .c3-bar {stroke: white !important; stroke-width: 1;}
        .c3 text { font-size: 12px; color: grey;}
        .tick line {stroke: white;}
        .c3-axis path {stroke: grey;}
        .c3-circle { opacity: 1 !important; }
        </style>

        <!-- optional: mobile support with jqueryui-touch-punch -->
        <script type="text/javascript" src="./js/jquery.ui.touch-punch.min.js"></script>

        <!-- for examples only! script to show code to user -->
        <!--script type="text/javascript" src="show_code.js"></script-->
    </head>
    <body>
        <script type="text/javascript">
    // This example adds C3 chart renderers.

    $(function(){

        var derivers = $.pivotUtilities.derivers;
        var renderers = $.extend($.pivotUtilities.renderers, 
            $.pivotUtilities.c3_renderers,
            $.pivotUtilities.ec_renderers);
         $.get("mps.csv", function(mps) {
            var input = $.csv.toArrays(mps);
            $("#output").pivotUI(input, {
                renderers: renderers
            });
        });
     });
        </script>
           <div id="output" style="margin: 30px;"></div>       
    </body>
</html>
